<%@ Page Language="C#" MasterPageFile="~/Views\Home\test.master" Inherits="System.Web.Mvc.ViewPage" %>
 		<asp:Content ContentPlaceHolderID="test" runat="server">
 			<div class="tab_container">
   				<div class="sub_content">MY LOANS</div>
   				<table width="100%" cellspacing="0">
   					<thead>
   				  		<td width="50%">Book Title</td>
   				  		<td width="25%">Date Borrowed</td>
   				  		<td width="25%">Date Due</td>
   				  	</thead>   				  		
   				  	<tbody id="bt_user">
					<% foreach (TestProject.Loan item in (ViewData["loans"] as List<TestProject.Loan>)) {%>
					<tr id="<%= Html.Encode(item.loan_ID) %>_row"<% if (Html.Encode(item.isOverdue)=="True"){ %> class="overdue_row" <% } %>>
						<td class="book_row" align="center" id="<%= Html.Encode(item.book_isbn) %>_title"><%= Html.Encode(item.bookTitle) %></td>
						<td align="center" id="<%= Html.Encode(item.loan_ID) %>_datestart"><%= Html.Encode(item.string_datestart) %></td>
						<td align="center" id="<%= Html.Encode(item.loan_ID) %>_dateend"><%= Html.Encode(item.string_dateend) %></td>
					</tr>
					<% } %>
					</tbody>
			  	</table>
			  	<font size="2">*Rows in <font color="#EE2C2C">red</font> mean that corresponding loans are past due date.</font>
   			</div> 			
 		</asp:Content>
 	
 	
